package com.example.demo.model;

import java.time.LocalDate;

public class TableData {
    private Long id;
    private String name;
    private String type;
    private Double price;
    private LocalDate date;

    // 构造函数
    public TableData() {}

    public TableData(Long id, String name, String type, Double price, LocalDate date) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.price = price;
        this.date = date;
    }

    // Getters and Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "TableData{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", price=" + price +
                ", date=" + date +
                '}';
    }
}    